package com.atguigu.lease.admin.controller.apartment;

import com.atguigu.lease.admin.service.LeaseTermService;
import com.atguigu.lease.common.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/term/list")
public class TermController {
    @Autowired
    LeaseTermService leaseTermService;
    @GetMapping
    public Result list(){
        return Result.ok(leaseTermService.list());
    }

}
